<template>
  <div>
    <h1>用来测试querySelector</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  created() {
    
  },
  mounted() {
    console.log(document.querySelector('h1').parentNode);
    let node = document.querySelector('h1');
    document.createRange().setStart(node, 100);
  },
  methods: {
    
  },
}
</script>

<style scoped>

</style>